package liuyuyang.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.ArrayList;
import java.util.List;

@Data
@TableName(value = "tb_city")
public class City {
    @TableId(value = "c_id",type = IdType.AUTO)
    private String cid;

    @TableField(value = "city_name")
    private String cityName;

    @TableField(value = "parent_id")
    private String parentId;

    @TableField(exist = false)
    private List<City> children = new ArrayList<>();
}
